package example;

import example.base.ConcreteComponent;
import example.base.ConcreteComponentA;
import example.base.ConcreteComponentB;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class Client {
    public static void main(String[] args) {
        ConcreteComponent cc = new ConcreteComponent();
        ConcreteComponentA ccA = new ConcreteComponentA();
        ConcreteComponentB ccB = new ConcreteComponentB();

        ccA.setComponent(cc);
        ccB.setComponent(ccA);

        ccB.operate();
    }
}
